package pta08;

import java.util.Scanner;
import java.util.regex.Matcher;
import java.util.regex.Pattern;

public class test8 {//201521123013
	public static void main(String[] args) {
		Scanner in=new Scanner(System.in);
		Pattern p=Pattern.compile("[+-]?[0-9]");/*-?\\d+*/
		Matcher m=null;
		boolean b=false;
		while(in.hasNext()){
			String	str=in.next();
			m=p.matcher(str);
			b=m.matches();
			System.out.println(b);
		}
	}
}
